package com.hongmeng.teamwork.entity.event;

import com.hongmeng.teamwork.entity.dto.MessageDto;
import com.hongmeng.teamwork.entity.po.TeamworkTask;
import com.hongmeng.teamwork.entity.po.TeamworkTaskUserRel;
import com.hongmeng.teamwork.enums.TaskOptTypeEnum;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

@Getter
@Setter
public class TaskMessageEvent extends ApplicationEvent {

    private TeamworkTask teamworkTask;
    private TaskOptTypeEnum optType;

    public TaskMessageEvent(Object source, TeamworkTask teamworkTask, TaskOptTypeEnum optType) {
        super(source);
        this.teamworkTask = teamworkTask;
        this.optType = optType;
    }
}
